package com.ynet.middleground.riskmanage;

import com.ynet.middleground.riskmanage.mq.SinkBlchzt;
import org.apache.dubbo.config.spring.context.annotation.DubboComponentScan;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.apache.dubbo.config.spring.context.annotation.EnableDubboConfig;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableScheduling;

import com.ynet.middleground.riskmanage.mq.SinkBlch;
import com.ynet.middleground.riskmanage.mq.SinkTest;

@EnableDubbo
@EnableDubboConfig
@EnableScheduling
@EnableBinding({SinkTest.class, SinkBlch.class, SinkBlchzt.class})
@DubboComponentScan("com.ynet.middleground.riskmanage.service")
@ImportResource("classpath:dubbo-provider.xml")
@SpringBootApplication
public class Application {
    @Value("${spring.server.port}")
    private int serverPort;
    @Value("${spring.application.name}")
    private String applicationName;

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}
